package com.example.chcrm.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.chcrm.entity.common.ResponseMsg;
import com.example.chcrm.entity.employee.EssEmployee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @Author 邹
 * @Date 2025/3/4 10:53
 * @Version 1.0
 */
@Mapper
public interface EssEmployeeMapper extends BaseMapper<EssEmployee> {
    /**
     * 分页查询
     *
     * @return
     */
    List<EssEmployee> pageList(@Param("employee") EssEmployee employee);

    EssEmployee getUserById(@Param("id") String id);

    /***
     * 用户导出
     * @param employee
     * @return
     * **/
    List<Map<String, Object>> userist(@Param("employee") EssEmployee employee);
}
